home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / editors / mjovesrc.zoo / mac.h < prev    next >
C/C++ Source or Header  |  1991-06-16  |  1KB  |  41 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
  3.  * is provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is    *
  5.  * included in all the files.                                              *
  6.  ***************************************************************************/
  7.  
  8. /* Macintosh related things. K. Mitchum 2/88 */
  9.  
  10.  
  11. #define NMENUS 6
  12. #define NMENUITEMS 40    /* This has GOT to be enough! */
  13.  
  14. typedef data_obj *menumap[NMENUITEMS];
  15. struct menu {
  16.     char *Name;
  17.     int menu_id;
  18.     MenuHandle Mn;
  19.     menumap m;
  20. };
  21.  
  22. struct stat {
  23.     int st_dev;        /* volume number */
  24.     long st_ino;        /* file number on volume */
  25.     dev_t st_rdev;
  26.     off_t st_size;        /* logical end of file */
  27.     int st_mode;
  28.     time_t st_mtime;    /* last modified */
  29. };
  30.  
  31. #define S_IFDIR 2
  32.  
  33. typedef char *va_list;
  34. #define va_dcl va_list va_alist;
  35. #define va_start(l) { (l) = (va_list)&va_alist; }
  36. #define va_arg(l,m) (((m*)((l) += sizeof(m)))[-1])
  37. #define va_end(l) { (l) = NULL; }
  38.  
  39.  
  40.  
  41.